<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <title>教育论坛</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <link rel="stylesheet" href="/css/bootstrap.min.css">
  <link rel="stylesheet" href="/css/bootstrap-theme.min.css">
  <script src="/js/jquery-3.6.0.min.js"></script>
  <script src="/js/bootstrap.min.js"></script>
</head>
<body>
<div th:insert="~{navigation :: nav}"></div>
<div class="row">
  <div class="col-md-3"></div>
  <div class="col-md-6">
    <form action="/register" method="post">
      <div class="form-group">
        <label for="exampleInputEmail1">用户名</label>
        <input type="text" class="form-control" id="exampleInputEmail1" name="username" placeholder="在此键入用户名">
      </div>
      <div class="form-group">
        <label for="exampleInputPassword1">密码</label>
        <input type="password" class="form-control" id="exampleInputPassword1" name="password" placeholder="在此键入密码">
      </div>
      <button type="submit" class="btn btn-default">注册</button>
      <div class="alert alert-danger col-lg-12 col-md-12 col-sm-12 col-xs-12"
           th:text="${error}"
           th:if="${error != null}">
      </div>
    </form>
  </div>
</div>
</body>
</html>